
<div><?php echo $this->session->flashdata('usuario');?></div>
<div id="titulo">Agregar Usuarios</div>
<?php echo form_open('cusuarios/save', array('name' => 'addusuarios','id' => 'commentForm'));?>

 <table class="tablaform" width="100%" border="0">
 <tr>
 <td><b>Nombre</b></td>
 <td><input type="text" name="nombre"  class="required" value=""/>
 <?php echo form_error('referencia');?>
 </td>
 </tr>

 <tr>
 <td><b>Usuario</b></td>
 <td><input type="text" name="usuario" class="required" value='' onclick="prueba2()"/></td>
 </tr>
 

 
  <tr>
 <td><b>Tipo de responsable</b></td>
<td>
<select name="responsable" id="responsable" class="required">
<option value="">Seleccione un responsable</option>
<?php
foreach ($responsable as $responsable2)
{
?>
	<option value="<?php echo $responsable2->getIdEstatus(); ?>"><?=$responsable2->getNombre();?></option>
<?php	
}
?>
</select>
</td>
</tr>
 
  <tr>
 <td><b>Tipo de roles</b></td>
<td>
<select name="roll" id="roll" class="required">
<option value="">Seleccione un roles</option>
<?php
foreach ($roles as $roles2)
{
?>
	<option value="<?php echo $roles2->getIdEstatus(); ?>"><?=$roles2->getNombre();?></option>
<?php	
}
?>
</select>
</td>
</tr>

  <tr>
 <td><b>Departamento</b></td>
<td>
<select name="departamento" id="departamento" class="required">
<option value="">Seleccione un departamento</option>
<?php
foreach ($departamento as $departamento2)
{
?>
	<option value="<?php echo $departamento2->getIdEstatus(); ?>"><?=$departamento2->getNombre();?></option>
<?php	
}
?>
</select>
</td>
</tr>
 
 <tr>
 <td><b>Password</b></td>
 <td><input type="password" id="pass" name="pass" value="" class="required"/></td>
 </tr>
  <tr>
 <td><b>Repite Password</b></td>
 <td><input type="password" name="pass2" value="" equalTo='#pass' /></td>
 </tr>

 
 <tr>
 <td><input type="submit" value="Agregar Usuario" align="center"/></td>
 <td><a href="<?php echo site_url().'/cusuarios' ?>"><input type="button" value="Atras" align="center"/></a></td>
 </tr>
 </table>
 </form>